package cn.lhy;


//返回json格式的对象
public class AjaxResult {


    private Boolean isSuccess = true;

    private String message ;

    public Boolean getSuccess() {
        return isSuccess;
    }

    public void setSuccess(Boolean success) {
        isSuccess = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    // new AjaxResult("操作失败")
    public AjaxResult(String message) {
        this.isSuccess = false;
        this.message = message;
    }

    public AjaxResult(){
        this.message = "操作成功";
    }
}
